import {createRouter, createWebHistory} from 'vue-router'
import LoginPage from '@/pages/LoginPage.vue'
import HomePage from '@/pages/HomePage.vue';
import RegisterPage from '@/pages/RegisterPage.vue';
import MainPage from '@/pages/mainPage.vue';
import RecallWordPage from '@/pages/RecallWordPage/RecallWordPage.vue';
import AccountPage from '@/pages/AccountPage/AccountPage.vue';
import FindPasswordPage from '@/pages/FindPasswordPage.vue';
import DictSelectPage from '@/pages/DictSelectPage/DictSelectPage.vue';
import RecalledWordsPage from '@/pages/RecalledWordsPage.vue';
import TempAdminConfig from '@/pages/TempAdminConfig/TempAdminConfig.vue';

const router = createRouter({
  history:createWebHistory(),
  routes:[
    {
      path: '/home',
      component: HomePage
    },
    {
      path: '/login',
      component: LoginPage
    },
    {
      path: '/register',
      component: RegisterPage
    },
    {
      path: '/main',
      component: MainPage
    },
    {
      path: '/recall-word',
      component: RecallWordPage
    },
    {
      path: '/account',
      component: AccountPage
    },
    {
      path: '/find-password',
      component: FindPasswordPage
    },
    {
      path: '/dict-select',
      component: DictSelectPage
    },
    {
      path: '/recalled',
      component: RecalledWordsPage
    },
    {
      path: '/admin',
      component: TempAdminConfig
    },
  ]
})

export default router;
